package com.treeroot.addservice.address;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description:
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 23:45 / 2022/5/12
 */
@SpringBootApplication
@EnableCircuitBreaker //在SpringCloud&Spring admin中使用断路器
@EnableHystrixDashboard //启用Hystrix仪表板
@EnableDiscoveryClient   //nacos注册
@ComponentScan(basePackages = {"com.treeroot"})
public class AddressApplication {
    public static void main(String[] args) {
        SpringApplication.run(AddressApplication.class,args);
    }
}